package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 勘测资方信息对象 erp_survey_investor_info
 * @author wutao
 * @date 2024-05-25
 */
@TableName ("erp_survey_investor_info")
@ApiModel (value = "erp_survey_investor_info对象", description = "勘测资方信息")
@Data
public class SurveyInvestorEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 资方名称
     */
    @ApiModelProperty ("资方名称")
    @TableField ("investor_name")
    @Excel (name = "资方名称")
    private String investorName;

    /**
     * 资方级别
     */
    @ApiModelProperty ("资方级别")
    @TableField ("investor_level")
    @Excel (name = "资方级别")
    private String investorLevel;

    /**
     * 通讯地址
     */
    @ApiModelProperty ("通讯地址")
    @TableField ("address")
    @Excel (name = "通讯地址")
    private String address;

    /**
     * 账户信息
     */
    @ApiModelProperty ("账户信息")
    @TableField ("account_info")
    @Excel (name = "账户信息")
    private String accountInfo;

    /**
     * 资方类型
     */
    @ApiModelProperty ("资方类型")
    @TableField ("investor_type")
    @Excel (name = "资方类型")
    private String investorType;

    /**
     * 营业执照
     */
    @ApiModelProperty ("营业执照")
    @TableField ("business_license")
    @Excel (name = "营业执照")
    private String businessLicense;

    /**
     * 备注
     */
    @ApiModelProperty ("备注")
    @TableField ("remarks")
    @Excel (name = "备注")
    private String remarks;

    /**
     * 是否在用
     */
    @ApiModelProperty ("是否在用")
    @TableField ("is_used")
    @Excel (name = "是否在用")
    private Integer isUsed;

    @Override
    public String toString () {
        return new ToStringBuilder ( this, ToStringStyle.MULTI_LINE_STYLE )
                .append ( "id", getId () )
                .append ( "investorName", getInvestorName () )
                .append ( "investorLevel", getInvestorLevel () )
                .append ( "address", getAddress () )
                .append ( "accountInfo", getAccountInfo () )
                .append ( "investorType", getInvestorType () )
                .append ( "businessLicense", getBusinessLicense () )
                .append ( "remarks", getRemarks () )
                .append ( "createTime", getCreateTime () )
                .append ( "updateTime", getUpdateTime () )
                .append ( "isUsed", getIsUsed () )
                .toString ();
    }
}
